package com.dahuyou.netty.keepaliveAndIdle.client;

import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.timeout.IdleStateHandler;

public class ClientWriteIdleCheckHandler extends IdleStateHandler {
    public ClientWriteIdleCheckHandler() {
        super(0, 5, 0);
    }

    @Override
    public void channelActive(ChannelHandlerContext ctx) throws Exception {
        System.out.println("channel active...");
        ctx.writeAndFlush("xxxxxxxxxxxxx111\r\n");
        super.channelActive(ctx);
    }
}
